<?php
/**
 * Created by 1971599474@qq.com
 * User: zhixuan
 * Date: 2020/1/29
 * Time: 19:01
 */

namespace app\common\enum;


class OrderEnum extends BaseEnum
{
    /**
     * 支付状态
     */
    const PAY_STATUS_ZERO  = 0;   //待付款
    const PAY_STATUS_ONE = 1;  //已支付
    const PAY_STATUS_TWO = 2;  //已取消

    /*
     * 发货状态
     * */
    const SHIPPING_STATUS_ZERO = 0;//未发货
    const SHIPPING_STATUS_ONE = 1;//已发货
    const SHIPPING_STATUS_TWO = 2;//已换货
    const SHIPPING_STATUS_THREE = 3;//已退货

    /*
     * 评价状态
     * */
    const IS_EVALUATE_ZERO = 0;//待评价
    const IS_EVALUATE_ONE = 1;//已评价
    const IS_EVALUATE_TWO = 2;//追加评价

    /*
     * 删除状态
     * */
    const DELETED_ZERO = 0;//未删除
    const DELETED_ONE = 1;//已删除
    /**
     * @var array
     */
    public static $list = [
        'pay_status' => [
            self::PAY_STATUS_ZERO => '待付款',
            self::PAY_STATUS_ONE => '已付款',
            self::PAY_STATUS_TWO => '已取消',
        ],
        'shipping_status'=>[
            self::SHIPPING_STATUS_ZERO => '未发货',
            self::SHIPPING_STATUS_ONE => '已发货',
            self::SHIPPING_STATUS_TWO => '已换货',
            self::SHIPPING_STATUS_THREE => '已退货',
        ],
        'is_evaluate'=>[
            self::IS_EVALUATE_ZERO => '待评价',
            self::IS_EVALUATE_ONE => '已评价',
            self::IS_EVALUATE_TWO => '追加评价',
        ],
        'deleted'=>[
            self::DELETED_ZERO => '未删除',
            self::DELETED_ONE => '已删除',
        ],
    ];
}